#pragma once
#include <libusb.h>

#define __WINDOWS_PLATFORM__    0
#define __LINUX_PLATFORM__      1

#ifndef WIN32
#define __CURRENT_PLATFORM__    __LINUX_PLATFORM__
#endif
//artosyn romcode
#define ARTO_ROMCODE_VID        (0x4152)
#define ARTO_ROMCODE_PID        (0x8030)
#define ARTO_ROMCODE_NAME       "Rom_usb"

//artosyn rtos
#define ARTO_RTOS_VID          (0x1d6b)
#define ARTO_RTOS_PID          (0x8030)
#define ARTO_RTOS_NAME         "Artosyn in HS Mode"

#define ARTO_USB_EP0_TRAN_SIZE  (0x1000)

#define ROUNDUP(x, y)           (((x) + ((y) - 1)) & ~((y) - 1))

int search_param(int argc, char* argv[], const char* flag);
int get_param(int argc, char* argv[], const char* flag);
